package chapter12;

public class Chapter12Main {

    public static void main(String[] args) {
        TreeSearch.Node T = new TreeSearch.Node();
        TreeSearch.treeInsert(T, new TreeSearch.Node(2));
        TreeSearch.treeInsert(T, new TreeSearch.Node(1));
//        treeInsert(T, new Node(3));
        TreeSearch.treeInsert(T, new TreeSearch.Node(5));
        TreeSearch.treeInsert(T, new TreeSearch.Node(4));
        TreeSearch.treeInsert(T, new TreeSearch.Node(9));

        TreeSearch.treeDelete(T, TreeSearch.iterativeTreeSearch(T.root, 5));

        System.out.println();
    }

}
